<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>管理平台</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<script type="text/javascript">
	$(function(){
		//获得跳转到当前页面的action url
		var selfUrlArrays = (window.self.location.href).split("/");
		var actionUrl = "/"+selfUrlArrays[selfUrlArrays.length-2] +"/"+ selfUrlArrays[selfUrlArrays.length-1];
		
		//获取当前登录用户在当前页面下的所有子按钮   如果用户具有此子按钮的权限   则在页面显示该按钮
		$.post('<%=request.getContextPath()%>/control/buttons.as?funcUrl='+ actionUrl,"",function(data){
			$.each(data,function(n,i){
				$("#"+i).show();
				//$('#'+i).linkbutton('enable');
			});
		},"json");
	});
</script>